package com.liuyou.tax;

public class SaleOrder {

    public void calculate() {
        tax.calculate();
    }

    public SaleOrder(TaxFactory taxFactory) {
        this.tax = taxFactory.createTax();
    }

    private final Tax tax;
}
